import store from 'store';

export function login(){
	return 	uni.request({
		url:store.state.URL+'login/login/token',
		data:{},
		success:(res) =>{
			//把token存进公共资源
			uni.setStorageSync('token',res.data.token);
		}
	});
}